<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">订单列表</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('count/index')}">
        订单号:
        <input type="text" class="form-control" name="order_no" style="width: 120px;" value="{:input('request.order_no/s','')}" placeholder="订单号">
        支付方式:
        <select class="form-control" name="pay_type" style="width: 140px;">
            <foreach name="pay" item="pay">
                <option value='{$pay.id}'>{$pay.name}</option>
            </foreach>
        </select>
        订单状态:
        <select class="form-control" name="pay_status" style="width: 140px;">
            <if condition="$pay_status eq 0">
                <option selected  value='0'>未选择</option>
            <else/>
                <option  value='0'>未选择</option>
            </if>
            <if condition="$pay_status eq 1">
                <option selected value='1'>正常</option>
            <else/>
                <option  value='1'>正常</option>
            </if>
            <if condition="$pay_status eq 2">
                <option selected value='2'>预约</option>
            <else/>
                <option  value='2'>预约</option>
            </if>
            <if condition="$pay_status eq -1">
                <option selected value='-1'>挂单</option>
            <else/>
                <option  value='-1'>挂单</option>
            </if>
            <if condition="$pay_status eq -2">
                <option selected value='-2'>关闭</option>
            <else/>
                <option  value='-2'>关闭</option>
            </if>
            <if condition="$pay_status eq -3">
                <option selected value='-3'>未支付</option>
            <else/>

            </if>

        </select>
        是否退单:
        <select class="form-control" name="refunt" style="width: 140px;">
            <if condition="$refunt eq 0">
                <option selected value='0'>未选择</option>
            <else/>
                <option value='0'>未选择</option>
            </if>
            <if condition="$refunt eq 2">
                <option selected value='2'>正常</option>
            <else/>
                <option  value='2'>正常</option>
            </if>
            <if condition="$refunt eq 1">
                <option selected value='1'>退款</option>
            <else/>
                <option value='1'>退款</option>
            </if>
        </select>
        时间:
        <input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" style="width: 140px;" autocomplete="off">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('count/index')}">清空</a>
    </form>
    <div style="width: 100%;height: 40px;background-color: #ecf0f1;line-height: 40px;font-size: 16px;"><span>总计：<span style="color: red">{$total.total_money}</span></span>&nbsp;&nbsp;<span>实收:<span style="color: red">{$total.actual_money}</span></span></div>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th width="50">订单号</th>
            <th>会员id</th>
            <th>姓名</th>
            <th>订单金额</th>
            <th>实际付款</th>
            <th>会员付款</th>
            <th>订单状态</th>
            <th>店铺名称</th>
            <th>支付方式</th>
            <th>生成时间</th>
            <th>支付时间</th>
            <th>是否退款</th>
            <th width="130">{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="data" item="data" key="k">
            <tr>
                <td>{$data['order_no']}</td>
                <td>{$data['member_id']}</td>
                <td>{$data['nick_name']}</td>
                <td>{$data['total_money']}</td>
                <td>{$data['actual_money']}</td>
                <td>{$data['give_money']}</td>
                <td>{$data['pay_name']}</td>
                <td>{$data['shop_name']}</td>
                <td>{$data['name']}</td>
                <td>{$data['c_time']|date='Y-m-d H:i:s',###}</td>
                <td>{$data['w_time']|date="Y-m-d H:i:s",###}</td>
                <td>{$data['refunt_name']}</td>
                <td><a  href="{:url('count/details',array('id'=>$data['order_no']))}">查看详情</a>&nbsp;</td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>